package com.zbj.nacos.config;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * ConfigController
 * @author weigang
 * @create 2019-07-27
 **/
@RestController
@RequestMapping("/config")
public class ConfigController {
	
	@Autowired
	private ConfigService configService;

	
    @GetMapping("/demo")
    public String demo() {
    	System.out.println("configService:"+configService);
        return configService.getMyName();
    }
    
	/*
	 * @NacosConfigListener(dataId = "yiwuxia.properties") public void
	 * zbjDemo(String message){ System.out.println(message); }
	 */

}